//
//  participant
//  Kayak
//
//  Created by Labbé Pellegrini, Sébastien on 12-05-24.
//  Copyright 2012 __MyCompanyName__. All rights reserved.
//

#import "Participant.h"


@implementation Participant

@synthesize nom;
@synthesize prenom;
@synthesize pays;
@synthesize numero;
@synthesize descente;
@synthesize sortValue;

- (id) init{
	return self = [super init];
}

- (id) initWithData: (NSString*) _prenom : (NSString*) _nom :  (NSString*) _pays : (int) _num {
	
	self = [super init];
	self.prenom = _prenom;
	self.nom = _nom;
	self.pays = _pays;
	self.numero = _num;
	self.descente = [[Descente alloc] init];
	
	return self;
}

-(void)demarrerDescente{
    [descente demarrerDescente];
}

-(void)terminerDescente:(bool) didNotFinish{
    sortValue = [descente terminerDescente:didNotFinish];
}

-(void)ajouterPenaliteManque{
    [descente ajouterPorteManquer];
}

-(void)ajouterpenaliteTouche{
    [descente ajouterPorteToucher];
}

@end
